package com.ruozedata.bigdata.lesson02

object OperatorApp {

    def main(args: Array[String]): Unit = {

        val a: Int = 20 / 3
        println(a)

        val b: Double = 20 / 3
        println(b)

        val c: Double = 20.0 / 3
        println(c)

        val d: Int = 10 % 3
        println(d)


        /**
         * a > b
         * a >= b
         * a <= b
         * a < b
         */
        val x = 1
        val y = 2
        println(x > y)


        /**
         * a && b
         * a || b
         * !(a && b)
         */
        val a1 = true
        val b1 = false
        println(a1 && b1)

    }
}
